package Manager;
/**
   @version 1.21 2004-02-21
   @author Cay Horstmann
*/

//import java.util.*;

public class ManagerTest
{
public static void main(String[] args)
{
 // construct a Manager object
 Manager boss = new Manager("Carl Cracker", 80000, 1987, 12, 15);
 boss.setBonus(5000);

 Angajat[] staff = new Angajat[3];

 // fill the staff array with Manager and Employee objects
 staff[0] = boss;
 staff[1] = new Angajat("Harry Hacker", 50000, 1989, 10, 1);
 staff[2] = new Angajat("Tommy Tester", 40000, 1990, 3, 15);

// print out information about all Employee objects
 for (Angajat e : staff)
System.out.println("name=" + e.getNume()
+ ",salary=" + e.getSalariu());
}
}
